<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
</head>
<body>
<div class="col-xs-12" th:fragment="com-info-change" >
<form class="form-horizontal" id="submitForm">
    <div class="form-group">
        <div class="form-group">
            <label class="col-sm-3 control-label no-padding-right text-warning" >姓名*</label>
            <div class="col-sm-9">
                <input type="text" id="name" name="name" th:value="${user.admin.name}" class="col-xs-10 col-sm-5" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label no-padding-right text-warning" >手机*</label>
            <div class="col-sm-9">
                <input type="text" id="mobile" name="mobile" th:value="${user.admin.mobile}" class="col-xs-10 col-sm-5" />
            </div>
        </div>
        <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right text-warning" >邮箱*</label>
        <div class="col-sm-9">
            <input type="text" id="email" name="email" th:value="${user.admin.email}" class="col-xs-10 col-sm-5" />
        </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label no-padding-right text-danger" >(请勿使用自己的隐私密码)邮箱密码*</label>
            <div class="col-sm-9">
                <input type="text" id="emailPassword" name="emailPassword" th:value="${user.admin.emailPassword}" class="col-xs-10 col-sm-5" />
            </div>
        </div>
    </div>
    <div class="clearfix form-actions">
        <div class="col-md-offset-3 col-md-9">
            <button class="btn btn-info btn-sm" type="button" onclick="save()">
                <i class="icon-ok bigger-110"></i>
                提交
            </button>
        </div>
    </div>
</form>
    <script th:inline="javascript">
    $(function(){
		$("#name").change(function (){
			check.checkEmpty("name");
		});
		$("#mobile").change(function (){
			check.checkEmpty("mobile");
		});
		$("#email").change(function (){
			check.checkEmpty("email");
		});
		$("#emailPassword").change(function (){
			check.checkEmpty("emailPassword");
		});

	});
	function save(){
		/*<![CDATA[*/
	 	//if(check.checkEmpty("name") & check.checkEmpty("mobile") & check.checkEmpty("email") & check.checkEmpty("emailPassword")){
			var uri = /*[[@{/public/user-info/info/change}]]*/;
			common.ajaxSubmit(uri,'submitForm','保存失败','保存成功','logout()');
		//}
		/*]]>*/
	}
</script>
</div>
</body>
</html>

